package org.suze.demo.converter;

import org.springframework.beans.BeanUtils;
import org.suze.demo.entity.Student;
import org.suze.demo.vo.StudentVo;
import org.suze.framework.base.BaseConverter;

/**
 * @description:
 * @Date : 2020/6/16 21:38
 * @Author : Seig Heil
 */
public class StudentVoConverter extends BaseConverter<StudentVo,Student> {
    @Override
    public StudentVo convert(Student student) {
        StudentVo vo = new StudentVo();
        BeanUtils.copyProperties(student,vo);
        return vo;
    }
}
